//package com.dianjing.dianjing.util;
//
//import com.dianjing.dianjing.entity.Painting;
//import org.springframework.beans.BeanUtils;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.PropertySource;
//import org.springframework.stereotype.Component;
//import org.springframework.util.ResourceUtils;
//import org.springframework.web.multipart.MultipartFile;
//
//import javax.validation.Valid;
//import java.io.File;
//import java.text.SimpleDateFormat;
//import java.util.Date;
//import java.util.UUID;
//
///**
// * 需要配置：
// * spirng:
// *  resources:
// *     # 访问http://ip/1.png 相当于 target/classes/uploads/1.png
// *     static-locations: classpath:uploads/
// */
//
///**
// * 配置
// * resource-upload:
// *   current-system: 'windows'
// *   win-drive-letter: 'D:'
// *   linux-path: /dj/upload
// */
////@PropertySource("classpath:application.yml")
//@ConfigurationProperties("resource-upload")
//public class FileUpload {
//
//
//}
